package com.ruoyi.project.manage.approveLog.mapper;

import java.util.List;
import com.ruoyi.project.manage.approveLog.domain.ApproveLog;

/**
 * 审批流转记录Mapper接口
 * 
 * @author fangkun
 * @date 2022-03-28
 */
public interface ApproveLogMapper 
{
    /**
     * 查询审批流转记录
     * 
     * @param approveLogId 审批流转记录主键
     * @return 审批流转记录
     */
    public ApproveLog selectApproveLogByApproveLogId(Long approveLogId);

    /**
     * 查询审批流转记录列表
     * 
     * @param approveLog 审批流转记录
     * @return 审批流转记录集合
     */
    public List<ApproveLog> selectApproveLogList(ApproveLog approveLog);

    /**
     * 查询项目日志，包含项目事项日志以及项目每日跟进
     *
     * @param projectId 项目ID
     * @return 审批流转记录
     */
    List<ApproveLog> selectProjectLogList(Long projectId, String beginDate, String endDate);

    /**
     * 新增审批流转记录
     * 
     * @param approveLog 审批流转记录
     * @return 结果
     */
    public int insertApproveLog(ApproveLog approveLog);

    /**
     * 修改审批流转记录
     * 
     * @param approveLog 审批流转记录
     * @return 结果
     */
    public int updateApproveLog(ApproveLog approveLog);

    /**
     * 删除审批流转记录
     * 
     * @param approveLogId 审批流转记录主键
     * @return 结果
     */
    public int deleteApproveLogByApproveLogId(Long approveLogId);

    /**
     * 批量删除审批流转记录
     * 
     * @param approveLogIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApproveLogByApproveLogIds(String[] approveLogIds);
}
